<?php

class ActiveRecordBase extends CActiveRecord
{
	public function Search($criteria) {
		return new CActiveDataProvider(get_class($this), array(
			'pagination'=>array(
				'pageSize' => Yii::app()->user->getState('pageSize', param('defaultPageSize')),
			),
			'criteria' => $criteria,
		));
	}
}